var app = angular.module('homePageApp', []);
app.controller('latestRepostListCtrl', function($scope, $http) {
    //$scope.items = [1, 2, 4, 1, 3, 4, 12, 2];
    $scope.abstractTitle = "概述.";
    $scope.abstractIntroduction = "本文的目的旨在通过质量分析报告建立自省机制，找出研发过程中瓶颈问题，前置解决，增强合作，持续改善公司各流程段质量，提升效率；";
    $scope.createAuthor = "Created By QA Team";
    $http({
        url: '../../api/processQualityReport/latestReportList.php?number=',
        headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'bearer' },
        method: 'get'
    }).then(function successFn(response) {
        $scope.data = response.data.data;
        //$scope.data -> Object
        // console.log($scope.data.length);
    }, function failFn(response) {
        try {
            console.log(response.error.returnUserMessage);
        } catch (e) {
            console.log(e);
        }
    });
});